.class Lcom/waiqin365/lightapp/visit/da;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/da;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7

    const/4 v6, 0x0

    const v5, 0x7f08013b

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/da;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->dismissProgressDialog()V

    iget v1, p1, Landroid/os/Message;->what:I

    sparse-switch v1, :sswitch_data_0

    goto :goto_0

    :sswitch_0
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/visit/a/a/at;

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/at;->c:Ljava/lang/String;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/a/a/at;->b()Z

    move-result v3

    if-eqz v3, :cond_4

    const-string/jumbo v3, "1"

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/a/a/at;->b:Ljava/lang/String;

    invoke-virtual {v3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "isModify"

    const/4 v3, 0x1

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v2, "plancontent"

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->m(Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;)Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;

    move-result-object v3

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/kehu/view/MultilineTextView_Vertical;->d()Ljava/lang/CharSequence;

    move-result-object v3

    invoke-interface {v3}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "remindTime"

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;)Lcom/waiqin365/lightapp/view/DateViewHasClear_vertical;

    move-result-object v3

    const-string/jumbo v4, "yyyy-MM-dd HH:mm:ss"

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/view/DateViewHasClear_vertical;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;Landroid/content/Intent;)V

    goto :goto_0

    :cond_2
    if-eqz v2, :cond_3

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_d

    :cond_3
    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :goto_1
    invoke-static {v0, v1, v6}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :cond_4
    if-eqz v2, :cond_5

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-nez v2, :cond_6

    :cond_5
    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->getString(I)Ljava/lang/String;

    :cond_6
    iget v1, v1, Lcom/waiqin365/lightapp/visit/a/a/at;->a:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto :goto_0

    :sswitch_1
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/visit/a/a/ac;

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/ac;->c:Ljava/lang/String;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/a/a/ac;->b()Z

    move-result v3

    if-eqz v3, :cond_9

    const-string/jumbo v3, "1"

    iget-object v4, v1, Lcom/waiqin365/lightapp/visit/a/a/ac;->b:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_7

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/a/a/ac;->d:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->b(Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;Ljava/lang/String;)Ljava/lang/String;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->f(Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;)Lcom/waiqin365/lightapp/view/CustomerSelectMultViewForVisit;

    move-result-object v1

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->n(Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/view/CustomerSelectMultViewForVisit;->setEnableIds(Ljava/lang/String;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->o(Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;)Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->p(Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->n(Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->n(Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->p(Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    const v1, 0x7f080835

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v6}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_7
    if-eqz v2, :cond_8

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_c

    :cond_8
    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :goto_2
    invoke-static {v0, v1, v6}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_9
    if-eqz v2, :cond_a

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-nez v2, :cond_b

    :cond_a
    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;->getString(I)Ljava/lang/String;

    :cond_b
    iget v1, v1, Lcom/waiqin365/lightapp/visit/a/a/ac;->a:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :cond_c
    move-object v1, v2

    goto :goto_2

    :cond_d
    move-object v1, v2

    goto/16 :goto_1

    :sswitch_data_0
    .sparse-switch
        0x2bf -> :sswitch_0
        0x2c7 -> :sswitch_1
    .end sparse-switch
.end method
